package com.xiyu.service.convert.statistics;

import com.xiyu.service.vo.statistics.statisticsMail.StatisticsMailReceiveSendQueryOutput;

import java.time.LocalDateTime;
import java.util.*;

import org.babyfish.jimmer.sql.ast.tuple.Tuple5;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * 邮件统计 Convert
 */
@Mapper
public interface StatisticsMailConvert {
    StatisticsMailConvert INSTANCE = Mappers.getMapper(StatisticsMailConvert.class);

    @Mapping(source = "_1", target = "ownerId")
    @Mapping(source = "_2", target = "statisticsTime")
    @Mapping(source = "_3", target = "receiveCount")
    @Mapping(source = "_4", target = "sendCount")
    @Mapping(source = "_5", target = "oneSendCount")
    StatisticsMailReceiveSendQueryOutput dealConvertQueryOutputConvert(Tuple5<Long, LocalDateTime, Long, Long, Long>  output);

    List<StatisticsMailReceiveSendQueryOutput> dealConvertQueryOutputConvert(List<Tuple5<Long, LocalDateTime, Long, Long, Long>>  output);

}
